<?php
/**
 * The template for displaying 404 pages (not found).
 *
 * @link https://codex.wordpress.org/Creating_an_Error_404_Page
 *
 * @package zsuper_mayi
 */

get_header(); ?>

	<div id="primary" class="content-area">
		<div class="error">
			<div class="errorimage">
				<img src="<?php bloginfo('template_url'); ?>/image/404.png" alt="not found">
			</div>
			<div class="errortext">
				<h3>您要找的内容，小蚂蚁并没有找到。<a href="<?php bloginfo('url' ); ?>"><span id="totalSecond">3</span>秒后返回首页</a></h3>
			</div>
		</div>
	</div><!-- #primary -->

<script language="javascript" type="text/javascript">
<!--
    var second = document.getElementById('totalSecond').textContent;
    if (navigator.appName.indexOf("Explorer") > -1)  //判断是IE浏览器还是Firefox浏览器，采用相应措施取得秒数
    {
        second = document.getElementById('totalSecond').innerText;
    } else
    {
        second = document.getElementById('totalSecond').textContent;
    }
    setInterval("redirect()", 1000);  //每1秒钟调用redirect()方法一次
    function redirect()
    {
        if (second < 0)
        {
            location.href = '/';
        } else
        {
            if (navigator.appName.indexOf("Explorer") > -1)
            {
                document.getElementById('totalSecond').innerText = second--;
            } else
            {
                document.getElementById('totalSecond').textContent = second--;
            }
        }
    }
-->
</script>
<?php
get_footer();
